package com.security.filter;

/**
 * @author 大忽悠
 * @create 2022/11/26 15:45
 */
public class CustomSecurityContext {
    private static ThreadLocal<Boolean> no_auth_flag=new ThreadLocal<>();

    public static Boolean noAuth() {
        return Boolean.TRUE.equals(no_auth_flag.get());
    }

    public static void setNoAuthFlag(Boolean flag){
        no_auth_flag.set(flag);
    }
}
